import { createApp } from 'vue'

import App from '@/App.vue'
import "@/styles/index.less"
// element css
import "element-plus/dist/index.css";
// element dark css
import "element-plus/theme-chalk/dark/css-vars.css";


import ElementPlus from "element-plus";
// element icons
import * as Icons from "@element-plus/icons-vue";

// 路由
import router from '@/routes'

import store from '@/store'

const app = createApp(App)
// 注册 Element Plus 组件（全局注册）
app.use(ElementPlus)
// 注册 element Icons 组件
Object.keys(Icons).forEach(key => {
    app.component(key, Icons[key as keyof typeof Icons])
})
app.use(router)
app.use(store)
app.mount('#app')
